﻿using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using csvm.contracts.components;
using csvm.contracts.datamodel;

namespace csvm.konsole.interactiveTest
{
    class Program
    {
        static void Main(string[] args)
        {
            var sut = new Konsole();

            sut.Out_Verarbeiten += MockAnalyse(sut);

            sut.In_Run(new[] {"input.csv", "output.bin"});

            Trace.Close();
        }


        static Action<string[]> MockAnalyse(IKonsole konsole)
        {
            return args =>
                       {
                           for(int fortschritt = 10; fortschritt <= 100; fortschritt += 10)
                               konsole.In_Fortschritt(new Prozent(fortschritt));

                           konsole.In_DatensätzeVerarbeitet(10);
                       };
        }
    }
}
